package com.shine.minepressure.ui.adapter;

import androidx.recyclerview.widget.RecyclerView;

import com.shine.minepressure.R;
import com.shine.minepressure.bean.IportHisFaultBean;
import com.shine.minepressure.bean.SensorHisAlarmBean;

import cn.bingoogolapple.baseadapter.BGARecyclerViewAdapter;
import cn.bingoogolapple.baseadapter.BGAViewHolderHelper;

public class HistoryDataFragment3Adapter extends BGARecyclerViewAdapter<IportHisFaultBean.RowsDTO> {

    public HistoryDataFragment3Adapter(RecyclerView recyclerView) {
        super(recyclerView, R.layout.item_history_data_child3_adapter);
    }

    @Override
    protected void fillData(BGAViewHolderHelper helper, int position, IportHisFaultBean.RowsDTO model) {
        helper.setText(R.id.IportID, model.getIportID())
                .setText(R.id.IportNum, model.getIportNum())
                .setText(R.id.StationID, model.getStationID())
                .setText(R.id.SensorName, model.getSensorName())
                .setText(R.id.SensorSort, model.getSensorSort())
                .setText(R.id.StartTime, model.getStartTime())
                .setText(R.id.EndTime, model.getEndTime())
                .setText(R.id.BadLong, model.getBadLong())
                .setText(R.id.SensorStyle, model.getSensorStyle())
        ;
    }
}
